<?php
namespace App\Http\Middleware; use Closure; class CORS { public function handle($spe5a184, Closure $spcf9b92) { if (config('app.debug')) { $spdc767d = array('Access-Control-Allow-Origin' => $spe5a184->header('Origin'), 'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, DELETE', 'Access-Control-Allow-Headers' => 'Content-Type, Accept, Authorization, Cookie, X-Requested-With, X-XSRF-TOKEN', 'Access-Control-Allow-Credentials' => 'true'); if ($spe5a184->isMethod('OPTIONS')) { return response()->make('', 200, $spdc767d); } $spca52a4 = $spcf9b92($spe5a184); foreach ($spdc767d as $sp50e909 => $spb17cea) { $spca52a4->headers->set($sp50e909, $spb17cea); } return $spca52a4; } return $spcf9b92($spe5a184); } }